Fix violation of C90 mixed-code-and-declarations restriction.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 2 Mar 2006 02:21:17 +0000 (03:21 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 2 Mar 2006 02:21:17 +0000 (03:21 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstore_control.c

index 80685c59d7be8664c74f0e2c620e7f0461a6b422..5433bfc811488c3be89639e388649c9e50773110 100644 (file)
@@ -7,6 +7,8 @@
 
 int main(int argc, char **argv)
 {
+  struct xs_handle * xsh;
+
   if (argc < 2 ||
       strcmp(argv[1], "check"))
   {
@@ -18,7 +20,7 @@ int main(int argc, char **argv)
     return 2;
   }
 
-  struct xs_handle * xsh = xs_daemon_open();
+  xsh = xs_daemon_open();
 
   xs_debug_command(xsh, argv[1], NULL, 0);